﻿using Cms.Core.Infrastructure.Filter;
using Cms.Core.Infrastructure.Helps;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;

namespace Cms.Core.Infrastructure.Ui
{
 public  class PageInputDto
    {
        public int PageIndex { get; set; } = 1;

        public int PageSize { get; set; } = 10;

        public List<FilterInfo> Filters { get; set; } = new List<FilterInfo>();

        public OrderCondition[] OrderConditions { get; set; }
    }

    public class PageInputDto<TModel>: PageInputDto
    {
        public Expression<Func<bool, TModel>> QueryExpression { get; set; }
    }


}
